home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
netdmo.exe
/
TIME2.FRM
< prev
next >
Wrap
Text File
|
1993-12-10
|
8KB
|
369 lines
Version 1.00
BEGIN Form Time2
AutoRedraw = 0
BackColor = QBColor(1)
BorderStyle = 1
Caption = "Set Server Time"
ControlBox = -1
Enabled = -1
ForeColor = QBColor(0)
Height = Char(19)
Left = Char(15)
MaxButton = -1
MinButton = -1
MousePointer = 0
Tag = ""
Top = Char(2)
Visible = -1
Width = Char(50)
WindowState = 0
BEGIN Label Label1
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Year:"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(33)
MousePointer = 0
TabIndex = 8
Tag = ""
Top = Char(3)
Visible = -1
Width = Char(5)
END
BEGIN Label Label2
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Month:"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(2)
MousePointer = 0
TabIndex = 9
Tag = ""
Top = Char(3)
Visible = -1
Width = Char(6)
END
BEGIN Label Label3
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Day:"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(18)
MousePointer = 0
TabIndex = 10
Tag = ""
Top = Char(3)
Visible = -1
Width = Char(4)
END
BEGIN TextBox daytext
BackColor = QBColor(1)
BorderStyle = 1
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(3)
Left = Char(23)
MousePointer = 0
MultiLine = 0
ScrollBars = 0
TabIndex = 1
TabStop = -1
Tag = ""
Text = ""
Top = Char(2)
Visible = -1
Width = Char(5)
END
BEGIN TextBox monthtext
BackColor = QBColor(1)
BorderStyle = 1
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(3)
Left = Char(8)
MousePointer = 0
MultiLine = 0
ScrollBars = 0
TabIndex = 0
TabStop = -1
Tag = ""
Text = ""
Top = Char(2)
Visible = -1
Width = Char(5)
END
BEGIN TextBox yearText
BackColor = QBColor(1)
BorderStyle = 1
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(3)
Left = Char(38)
MousePointer = 0
MultiLine = 0
ScrollBars = 0
TabIndex = 2
TabStop = -1
Tag = ""
Text = ""
Top = Char(2)
Visible = -1
Width = Char(5)
END
BEGIN Label Label4
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Hour:"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(2)
MousePointer = 0
TabIndex = 11
Tag = ""
Top = Char(8)
Visible = -1
Width = Char(6)
END
BEGIN Label Label5
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Minute:"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(16)
MousePointer = 0
TabIndex = 12
Tag = ""
Top = Char(8)
Visible = -1
Width = Char(7)
END
BEGIN Label Label6
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Second:"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(31)
MousePointer = 0
TabIndex = 13
Tag = ""
Top = Char(8)
Visible = -1
Width = Char(7)
END
BEGIN TextBox hourText
BackColor = QBColor(1)
BorderStyle = 1
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(3)
Left = Char(9)
MousePointer = 0
MultiLine = 0
ScrollBars = 0
TabIndex = 3
TabStop = -1
Tag = ""
Text = ""
Top = Char(7)
Visible = -1
Width = Char(5)
END
BEGIN TextBox minuteText
BackColor = QBColor(1)
BorderStyle = 1
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(3)
Left = Char(23)
MousePointer = 0
MultiLine = 0
ScrollBars = 0
TabIndex = 4
TabStop = -1
Tag = ""
Text = ""
Top = Char(7)
Visible = -1
Width = Char(5)
END
BEGIN TextBox secondText
BackColor = QBColor(1)
BorderStyle = 1
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(3)
Left = Char(38)
MousePointer = 0
MultiLine = 0
ScrollBars = 0
TabIndex = 5
TabStop = -1
Tag = ""
Text = ""
Top = Char(7)
Visible = -1
Width = Char(5)
END
BEGIN CommandButton SetButon
BackColor = QBColor(7)
Cancel = 0
Caption = "Set"
Default = 0
DragMode = 0
Enabled = -1
Height = Char(3)
Left = Char(4)
MousePointer = 0
TabIndex = 6
TabStop = -1
Tag = ""
Top = Char(11)
Visible = -1
Width = Char(13)
END
BEGIN CommandButton Cancel
BackColor = QBColor(7)
Cancel = 0
Caption = "Cancel"
Default = 0
DragMode = 0
Enabled = -1
Height = Char(3)
Left = Char(27)
MousePointer = 0
TabIndex = 7
TabStop = -1
Tag = ""
Top = Char(11)
Visible = -1
Width = Char(14)
END
BEGIN Label Label7
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Note: Console Operator Required"
DragMode = 0
Enabled = -1
ForeColor = QBColor(7)
Height = Char(1)
Left = Char(7)
MousePointer = 0
TabIndex = 14
Tag = ""
Top = Char(15)
Visible = -1
Width = Char(32)
END
BEGIN Label Label8
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Date:"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(2)
MousePointer = 0
TabIndex = 15
Tag = ""
Top = Char(1)
Visible = -1
Width = Char(6)
END
BEGIN Label Label9
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Military Time:"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(2)
MousePointer = 0
TabIndex = 16
Tag = ""
Top = Char(6)
Visible = -1
Width = Char(15)
END
END
'$FORM Time
TYPE SST 'SetServerTime
year AS INTEGER
month AS INTEGER
day AS INTEGER
hour AS INTEGER
minute AS INTEGER
second AS INTEGER
ReturnCode AS INTEGER
END TYPE
DECLARE SUB SetServerTime (SetServTime AS SST)
SUB Cancel_Click ()
UNLOAD time2
Time.SHOW
END SUB
SUB SetButon_Click ()
DIM SetServTime AS SST
SetServTime.year% = VAL(yeartext.text)
SetServTime.month% = VAL(monthtext.text)
SetServTime.day% = VAL(daytext.text)
SetServTime.hour% = VAL(hourtext.text)
SetServTime.minute% = VAL(minutetext.text)
SetServTime.second% = VAL(secondtext.text)
CALL SetServerTime(SetServTime) 'Call the Procedure
IF SetServTime.ReturnCode% <> 0 THEN
msg$ = "Console Operator rights required"
MSGBOX msg$, 0, "Time Set Error"
END IF
UNLOAD time2
Time.SHOW
END SUB